<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>embedme: libemb/inc/TraceDebug.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">embedme
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.8 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="annotated.html"><span>类</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>文件成员</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_574d9269cd334a9d02d8928365303d98.html">libemb</a></li><li class="navelem"><a class="el" href="dir_207aad82934689048a9003fb51f06f7f.html">inc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">宏定义</a>  </div>
  <div class="headertitle">
<div class="title">TraceDebug.h 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="_debug_print_8h_source.html">DebugPrint.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_logger_8h_source.html">Logger.h</a>&quot;</code><br />
<code>#include &lt;typeinfo&gt;</code><br />
<code>#include &lt;stdio.h&gt;</code><br />
<code>#include &lt;errno.h&gt;</code><br />
<code>#include &lt;string.h&gt;</code><br />
</div>
<p><a href="_trace_debug_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:a62420dbbc94ba1b4b958b29002e5b48e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a62420dbbc94ba1b4b958b29002e5b48e"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>__TRACEE_H__</b></td></tr>
<tr class="separator:a62420dbbc94ba1b4b958b29002e5b48e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5422f14baad99dde95961762e2d6fe84"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_trace_debug_8h.html#a5422f14baad99dde95961762e2d6fe84">TRACE_RED</a>(fmt, arg...)&#160;&#160;&#160;do{<a class="el" href="_debug_print_8h.html#a8e71fdf20a907f276afc501175391df9">DebugPrint</a>(<a class="el" href="_debug_print_8h.html#a69666523fbc7f83c8119c8bd918ba633">DEBUG_REL</a>,&quot;\033[31m\033[1m&quot;fmt&quot;\033[0m&quot;,##arg);}while(0)</td></tr>
<tr class="separator:a5422f14baad99dde95961762e2d6fe84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ef1c2463df9f451fa4fa23965b285da"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3ef1c2463df9f451fa4fa23965b285da"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>TRACE_GREEN</b>(fmt, arg...)&#160;&#160;&#160;do{<a class="el" href="_debug_print_8h.html#a8e71fdf20a907f276afc501175391df9">DebugPrint</a>(<a class="el" href="_debug_print_8h.html#a69666523fbc7f83c8119c8bd918ba633">DEBUG_REL</a>,&quot;\033[32m\033[1m&quot;fmt&quot;\033[0m&quot;,##arg);}while(0)</td></tr>
<tr class="separator:a3ef1c2463df9f451fa4fa23965b285da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97ad4abd28373c1afb4d40bddd21e69a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a97ad4abd28373c1afb4d40bddd21e69a"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>TRACE_YELLOW</b>(fmt, arg...)&#160;&#160;&#160;do{<a class="el" href="_debug_print_8h.html#a8e71fdf20a907f276afc501175391df9">DebugPrint</a>(<a class="el" href="_debug_print_8h.html#a69666523fbc7f83c8119c8bd918ba633">DEBUG_REL</a>,&quot;\033[33m\033[1m&quot;fmt&quot;\033[0m&quot;,##arg);}while(0)</td></tr>
<tr class="separator:a97ad4abd28373c1afb4d40bddd21e69a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad853a72aab6617f0e304afade3443c4a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad853a72aab6617f0e304afade3443c4a"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>TRACE_PINK</b>(fmt, arg...)&#160;&#160;&#160;do{<a class="el" href="_debug_print_8h.html#a8e71fdf20a907f276afc501175391df9">DebugPrint</a>(<a class="el" href="_debug_print_8h.html#a69666523fbc7f83c8119c8bd918ba633">DEBUG_REL</a>,&quot;\033[35m\033[1m&quot;fmt&quot;\033[0m&quot;,##arg);}while(0)</td></tr>
<tr class="separator:ad853a72aab6617f0e304afade3443c4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f24ee4604980fb3cf4949241b57b460"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8f24ee4604980fb3cf4949241b57b460"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>TRACE_CYAN</b>(fmt, arg...)&#160;&#160;&#160;do{<a class="el" href="_debug_print_8h.html#a8e71fdf20a907f276afc501175391df9">DebugPrint</a>(<a class="el" href="_debug_print_8h.html#a69666523fbc7f83c8119c8bd918ba633">DEBUG_REL</a>,&quot;\033[36m\033[1m&quot;fmt&quot;\033[0m&quot;,##arg);}while(0)</td></tr>
<tr class="separator:a8f24ee4604980fb3cf4949241b57b460"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af50a5804898f1415b45b75b681f5652c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_trace_debug_8h.html#af50a5804898f1415b45b75b681f5652c">TRACE_REL</a>(fmt, arg...)&#160;&#160;&#160;do{<a class="el" href="_debug_print_8h.html#a8e71fdf20a907f276afc501175391df9">DebugPrint</a>(<a class="el" href="_debug_print_8h.html#a69666523fbc7f83c8119c8bd918ba633">DEBUG_REL</a>,fmt,##arg);}while(0)</td></tr>
<tr class="separator:af50a5804898f1415b45b75b681f5652c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45055f73487be7356876c9e15530e516"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a45055f73487be7356876c9e15530e516"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>TRACE_ERR</b>(fmt, arg...)&#160;&#160;&#160;do{<a class="el" href="_debug_print_8h.html#a8e71fdf20a907f276afc501175391df9">DebugPrint</a>(<a class="el" href="_debug_print_8h.html#a653623da09fe4c8356e422b4ce555b70">DEBUG_ERR</a>,&quot;\033[31m\033[1m&quot;fmt&quot;\033[0m&quot;,##arg);}while(0)</td></tr>
<tr class="separator:a45055f73487be7356876c9e15530e516"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0866d85379e242af8423181e5beb225f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0866d85379e242af8423181e5beb225f"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>TRACE_WARN</b>(fmt, arg...)&#160;&#160;&#160;do{<a class="el" href="_debug_print_8h.html#a8e71fdf20a907f276afc501175391df9">DebugPrint</a>(<a class="el" href="_debug_print_8h.html#ac9603ba178c9f584ce4ea7f51798e67d">DEBUG_WARN</a>,&quot;\033[33m\033[1m&quot;fmt&quot;\033[0m&quot;,##arg);}while(0)</td></tr>
<tr class="separator:a0866d85379e242af8423181e5beb225f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a894c4e78e719b0b60aa19c71df0f3f97"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a894c4e78e719b0b60aa19c71df0f3f97"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>TRACE_INFO</b>(fmt, arg...)&#160;&#160;&#160;do{<a class="el" href="_debug_print_8h.html#a8e71fdf20a907f276afc501175391df9">DebugPrint</a>(<a class="el" href="_debug_print_8h.html#a4407b4d6eae3ba7fe9538b1242a7e165">DEBUG_INFO</a>,&quot;\033[32m\033[1m&quot;fmt&quot;\033[0m&quot;,##arg);}while(0)</td></tr>
<tr class="separator:a894c4e78e719b0b60aa19c71df0f3f97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff51baeca94407cfe34c6585a4f91902"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aff51baeca94407cfe34c6585a4f91902"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>TRACE_DEBUG</b>(fmt, arg...)&#160;&#160;&#160;do{<a class="el" href="_debug_print_8h.html#a8e71fdf20a907f276afc501175391df9">DebugPrint</a>(<a class="el" href="_debug_print_8h.html#ab8344533c285367480d3b101df197a01">DEBUG_DBG</a>,&quot;\033[36m\033[1m&quot;fmt&quot;\033[0m&quot;,##arg);}while(0)</td></tr>
<tr class="separator:aff51baeca94407cfe34c6585a4f91902"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a27f13c8c76782f4526adac323c33ad7e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_trace_debug_8h.html#a27f13c8c76782f4526adac323c33ad7e">TRACE_HEX</a>(tag, buf, len)&#160;&#160;&#160;do{<a class="el" href="_debug_print_8h.html#a2d67ad9fd673f5b60534fadc138c61eb">DebugPrintHex</a>(<a class="el" href="_debug_print_8h.html#ab8344533c285367480d3b101df197a01">DEBUG_DBG</a>, tag, buf, len);}while(0)</td></tr>
<tr class="separator:a27f13c8c76782f4526adac323c33ad7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e6780a0fe1a9152feffadfedcee8756"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_trace_debug_8h.html#a4e6780a0fe1a9152feffadfedcee8756">TRACE_LOG</a>(fmt, arg...)</td></tr>
<tr class="separator:a4e6780a0fe1a9152feffadfedcee8756"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b25a234ac5293cabc05ac2fca2c8e80"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><b>TRACE_TEXT</b>(fmt, arg...)</td></tr>
<tr class="separator:a2b25a234ac5293cabc05ac2fca2c8e80"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a289a5fa1d3eee2899a64a9854061ab06"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_trace_debug_8h.html#a289a5fa1d3eee2899a64a9854061ab06">CLASSNAME_STR</a>&#160;&#160;&#160;(&amp;(typeid(*this).name()[1]))</td></tr>
<tr class="separator:a289a5fa1d3eee2899a64a9854061ab06"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59e2b8237c376767dde38a037b7ae92e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a59e2b8237c376767dde38a037b7ae92e"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>TRACE_REL_CLASS</b>(fmt, arg...)&#160;&#160;&#160;{<a class="el" href="_trace_debug_8h.html#af50a5804898f1415b45b75b681f5652c">TRACE_REL</a>(&quot;[%-16s]&quot;fmt,CLASSNAME_STR,##arg);}</td></tr>
<tr class="separator:a59e2b8237c376767dde38a037b7ae92e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc210794b4b204fc34850d740983fe60"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afc210794b4b204fc34850d740983fe60"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>TRACE_ERR_CLASS</b>(fmt, arg...)&#160;&#160;&#160;{TRACE_ERR(&quot;[%-16s]&lt;ERROR@%s,L%d&gt;:&quot;fmt,CLASSNAME_STR,__FUNCTION__,__LINE__,##arg);}</td></tr>
<tr class="separator:afc210794b4b204fc34850d740983fe60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a024d38ac4da813c9bef2afd222478377"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a024d38ac4da813c9bef2afd222478377"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>TRACE_WARN_CLASS</b>(fmt, arg...)&#160;&#160;&#160;{TRACE_WARN(&quot;[%-16s]&lt;WARN @%s,L%d&gt;:&quot;fmt,CLASSNAME_STR,__FUNCTION__,__LINE__,##arg);}</td></tr>
<tr class="separator:a024d38ac4da813c9bef2afd222478377"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec4d1990b387643d1b162ae8c4b4f2d1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aec4d1990b387643d1b162ae8c4b4f2d1"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>TRACE_INFO_CLASS</b>(fmt, arg...)&#160;&#160;&#160;{TRACE_INFO(&quot;[%-16s]&lt;INFO @%s,L%d&gt;:&quot;fmt,CLASSNAME_STR,__FUNCTION__,__LINE__,##arg);}</td></tr>
<tr class="separator:aec4d1990b387643d1b162ae8c4b4f2d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c9d0aba1bdcc0f3ee21abca85b75dca"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7c9d0aba1bdcc0f3ee21abca85b75dca"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>TRACE_DEBUG_CLASS</b>(fmt, arg...)&#160;&#160;&#160;{TRACE_DEBUG(&quot;[%-16s]&lt;DEBUG&gt;:&quot;fmt,CLASSNAME_STR,##arg);}</td></tr>
<tr class="separator:a7c9d0aba1bdcc0f3ee21abca85b75dca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4b6b88f748ede3d9a7d1c4c8834d048"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_trace_debug_8h.html#aa4b6b88f748ede3d9a7d1c4c8834d048">TRACE_LOG_CLASS</a>(fmt, arg...)</td></tr>
<tr class="separator:aa4b6b88f748ede3d9a7d1c4c8834d048"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aafb785ddac3a16af13fc903fc54643e6"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_trace_debug_8h.html#aafb785ddac3a16af13fc903fc54643e6">ERROR_STRING</a>&#160;&#160;&#160;(strerror(errno))</td></tr>
<tr class="separator:aafb785ddac3a16af13fc903fc54643e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">宏定义说明</h2>
<a class="anchor" id="a289a5fa1d3eee2899a64a9854061ab06"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CLASSNAME_STR&#160;&#160;&#160;(&amp;(typeid(*this).name()[1]))</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>下面宏实现可以打印出类名的级别打印(仅在C++类中可使用,需要this指针) </p>

</div>
</div>
<a class="anchor" id="aafb785ddac3a16af13fc903fc54643e6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ERROR_STRING&#160;&#160;&#160;(strerror(errno))</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>linux标准错误字串 </p>

</div>
</div>
<a class="anchor" id="a27f13c8c76782f4526adac323c33ad7e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TRACE_HEX</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">tag, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">buf, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">len&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;do{<a class="el" href="_debug_print_8h.html#a2d67ad9fd673f5b60534fadc138c61eb">DebugPrintHex</a>(<a class="el" href="_debug_print_8h.html#ab8344533c285367480d3b101df197a01">DEBUG_DBG</a>, tag, buf, len);}while(0)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>打印16进制字串 </p>

</div>
</div>
<a class="anchor" id="a4e6780a0fe1a9152feffadfedcee8756"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TRACE_LOG</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">fmt, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">arg...&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line"><span class="keywordflow">do</span>{<a class="code" href="class_logger.html#a9ddfac0640ed92ac153f7e24f6134bcb">Logger::getInstance</a>()-&gt;<a class="code" href="class_logger.html#a4e63cbc1d6d8f374afe1d3e12b5f5842">log</a>(<span class="stringliteral">&quot;&lt;@%s,L%d&gt;&quot;</span>fmt,__FILE__,__LINE__,##arg);\</div>
<div class="line">                                       TRACE_PINK(<span class="stringliteral">&quot;[LOG  ]&lt;@%s,L%d&gt;:&quot;</span>fmt,__FUNCTION__,__LINE__,##arg);}<span class="keywordflow">while</span>(0)</div>
<div class="ttc" id="class_logger_html_a9ddfac0640ed92ac153f7e24f6134bcb"><div class="ttname"><a href="class_logger.html#a9ddfac0640ed92ac153f7e24f6134bcb">Logger::getInstance</a></div><div class="ttdeci">static Logger * getInstance()</div><div class="ttdoc">获取Logger单例 </div><div class="ttdef"><b>Definition:</b> Logger.h:47</div></div>
<div class="ttc" id="class_logger_html_a4e63cbc1d6d8f374afe1d3e12b5f5842"><div class="ttname"><a href="class_logger.html#a4e63cbc1d6d8f374afe1d3e12b5f5842">Logger::log</a></div><div class="ttdeci">void log(const char *fmt,...)</div><div class="ttdoc">记录日志 </div><div class="ttdef"><b>Definition:</b> Logger.cpp:117</div></div>
</div><!-- fragment --><p>日志信息打印(用在C中) </p>

</div>
</div>
<a class="anchor" id="aa4b6b88f748ede3d9a7d1c4c8834d048"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TRACE_LOG_CLASS</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">fmt, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">arg...&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line"><span class="keywordflow">do</span>{<a class="code" href="class_logger.html#a9ddfac0640ed92ac153f7e24f6134bcb">Logger::getInstance</a>()-&gt;<a class="code" href="class_logger.html#a4e63cbc1d6d8f374afe1d3e12b5f5842">log</a>(<span class="stringliteral">&quot;&lt;@%s::%s,L%d&gt;&quot;</span>fmt,<a class="code" href="_trace_debug_8h.html#a289a5fa1d3eee2899a64a9854061ab06">CLASSNAME_STR</a>,__FUNCTION__,__LINE__,##arg);\</div>
<div class="line">                                             TRACE_PINK(<span class="stringliteral">&quot;[LOG  ]&lt;@%s,L%d&gt;:&quot;</span>fmt,__FUNCTION__,__LINE__,##arg);}<span class="keywordflow">while</span>(0)</div>
<div class="ttc" id="class_logger_html_a9ddfac0640ed92ac153f7e24f6134bcb"><div class="ttname"><a href="class_logger.html#a9ddfac0640ed92ac153f7e24f6134bcb">Logger::getInstance</a></div><div class="ttdeci">static Logger * getInstance()</div><div class="ttdoc">获取Logger单例 </div><div class="ttdef"><b>Definition:</b> Logger.h:47</div></div>
<div class="ttc" id="class_logger_html_a4e63cbc1d6d8f374afe1d3e12b5f5842"><div class="ttname"><a href="class_logger.html#a4e63cbc1d6d8f374afe1d3e12b5f5842">Logger::log</a></div><div class="ttdeci">void log(const char *fmt,...)</div><div class="ttdoc">记录日志 </div><div class="ttdef"><b>Definition:</b> Logger.cpp:117</div></div>
<div class="ttc" id="_trace_debug_8h_html_a289a5fa1d3eee2899a64a9854061ab06"><div class="ttname"><a href="_trace_debug_8h.html#a289a5fa1d3eee2899a64a9854061ab06">CLASSNAME_STR</a></div><div class="ttdeci">#define CLASSNAME_STR</div><div class="ttdef"><b>Definition:</b> TraceDebug.h:70</div></div>
</div><!-- fragment --><p>日志信息打印(用在C++中) </p>

</div>
</div>
<a class="anchor" id="a5422f14baad99dde95961762e2d6fe84"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TRACE_RED</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">fmt, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">arg...&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;do{<a class="el" href="_debug_print_8h.html#a8e71fdf20a907f276afc501175391df9">DebugPrint</a>(<a class="el" href="_debug_print_8h.html#a69666523fbc7f83c8119c8bd918ba633">DEBUG_REL</a>,&quot;\033[31m\033[1m&quot;fmt&quot;\033[0m&quot;,##arg);}while(0)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>颜色打印 </p>

</div>
</div>
<a class="anchor" id="af50a5804898f1415b45b75b681f5652c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TRACE_REL</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">fmt, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">arg...&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;do{<a class="el" href="_debug_print_8h.html#a8e71fdf20a907f276afc501175391df9">DebugPrint</a>(<a class="el" href="_debug_print_8h.html#a69666523fbc7f83c8119c8bd918ba633">DEBUG_REL</a>,fmt,##arg);}while(0)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>下面宏实现可以根据信息类型分颜色打印 </p>

</div>
</div>
<a class="anchor" id="a2b25a234ac5293cabc05ac2fca2c8e80"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TRACE_TEXT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">fmt, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">arg...&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line"><span class="keywordflow">do</span>{<span class="keywordflow">if</span>(<a class="code" href="_debug_print_8h.html#acb8daaa78864379813a74092d959ccb0">DebugPrintLevel</a>()==<a class="code" href="_debug_print_8h.html#ab8344533c285367480d3b101df197a01">DEBUG_DBG</a>){\</div>
<div class="line">                                            TRACE_CYAN(<span class="stringliteral">&quot;----------------------------------------\n&quot;</span>);\</div>
<div class="line">                                            printf(fmt,arg);\</div>
<div class="line">                                            TRACE_CYAN(<span class="stringliteral">&quot;\n----------------------------------------\n&quot;</span>);\</div>
<div class="line">                                            }}<span class="keywordflow">while</span>(0)</div>
<div class="ttc" id="_debug_print_8h_html_ab8344533c285367480d3b101df197a01"><div class="ttname"><a href="_debug_print_8h.html#ab8344533c285367480d3b101df197a01">DEBUG_DBG</a></div><div class="ttdeci">#define DEBUG_DBG</div><div class="ttdef"><b>Definition:</b> DebugPrint.h:40</div></div>
<div class="ttc" id="_debug_print_8h_html_acb8daaa78864379813a74092d959ccb0"><div class="ttname"><a href="_debug_print_8h.html#acb8daaa78864379813a74092d959ccb0">DebugPrintLevel</a></div><div class="ttdeci">sint32 DebugPrintLevel()</div><div class="ttdoc">返回当前打印级别 </div><div class="ttdef"><b>Definition:</b> DebugPrint.cpp:122</div></div>
</div><!-- fragment -->
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2016年 七月 7日 星期四 19:49:38 , 为 embedme使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>
